//
//  DetailSegment.m
//  ybzj
//
//  Created by liyuan on 15/7/19.
//  Copyright (c) 2015年 liyuan. All rights reserved.
//

#import "DetailSegment.h"

@implementation DetailSegment

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(void)awakeFromNib{
    for(UIView *view in self.subviews){
        view.backgroundColor=[UIColor blueColor];
        UILabel *label=[view.subviews objectAtIndex:0];
        NSMutableAttributedString *attributedTitle=[[NSMutableAttributedString alloc] initWithString:@"asda"];
        [attributedTitle addAttribute:NSForegroundColorAttributeName value:(id)[UIColor blackColor].CGColor range:NSMakeRange(0, [attributedTitle length])];
        //[attributedTitle addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:width*32/640] range:NSMakeRange(0, [attributedTitle length])];
        [label setAttributedText:attributedTitle];
    }
}

@end
